package cn.tangcent;

/**
 * Created by TangMing on 2017/4/8.
 */
public class Value {
    private int num;
    private int x;
    private int y;

    public Value(int num, int x, int y) {
        this.num = num;
        this.x = x;
        this.y = y;
    }

    public Value(int num, Coordinate coordinate) {
        this.num = num;
        this.x = coordinate.getX();
        this.y = coordinate.getY();
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    @Override
    public String toString() {
        return "[" +
                "num=" + num +
                ",x=" + x +
                ",y=" + y +
                ']';
    }
}
